<?php

namespace App\Http\Controllers\api;

use App\Models\Category;

class CategoryController extends BaseController {
	
	public function index() {
		$categories = Category::pluck('name', 'id');
		return $this->respOk($categories);
	}
}
